#coding=gbk

handler={}

class Test:
    @staticmethod
    def sayHello():
        print("sayHello")
    def say(self):
        print("say Self")

handler[1] = Test.sayHello

handler[1]()

handler[2] = Test.say

handler[2](Test())
handler[3] = {}
handler[3][2] = Test.say

if (handler[3].has_key(2)):
    handler[3][2](Test())
